﻿using System.Collections.Generic;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 发料单
    /// </summary>
    public class VDispatchOrder : BaseVModel
    {
        private string _dispatchNo = string.Empty;
        private string _orderNo = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _workshopCode = string.Empty;
        private string _workshopName = string.Empty;
        private string _receiveBy = string.Empty;

        #region Public Property

        ///<Summary>
        /// 发料单号
        ///</Summary>
        public string DispatchNo
        {
            get { return string.IsNullOrWhiteSpace(_dispatchNo) ? string.Empty : _dispatchNo; }
            set { _dispatchNo = value; }
        }

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 车间代码
        ///</Summary>
        public string WorkshopCode
        {
            get { return string.IsNullOrWhiteSpace(_workshopCode) ? string.Empty : _workshopCode; }
            set { _workshopCode = value; }
        }

        ///<Summary>
        /// 车间名称
        ///</Summary>
        public string WorkshopName
        {
            get { return string.IsNullOrWhiteSpace(_workshopName) ? string.Empty : _workshopName; }
            set { _workshopName = value; }
        }

        ///<Summary>
        /// 收料人
        ///</Summary>
        public string ReceiveBy
        {
            get { return string.IsNullOrWhiteSpace(_receiveBy) ? string.Empty : _receiveBy; }
            set { _receiveBy = value; }
        }

        /// <summary>
        /// 发料产品清单
        /// </summary>
        public List<VDispatchOrderProduct> Products { get; set; } = new List<VDispatchOrderProduct>();
        #endregion
    }
}
